<admintpl file="header"/>
</head>
<body>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<style type="text/css">
	.current{background-color:rgba(0,255,150,0.5);}
	.prev,.num,.next,
	.current{width:auto;height:auto;
	margin:4px;padding:8px 20px;
	box-shadow:0 0 2px rgba(0,0,0,0.6);
	background-color:rgba(255,255,255,0.1);}
</style> 
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="{:U('Admin/User/lists')}">用户列表</a></li>
    </ul>
    <form class="well form-search" method="post" action="{:U('Admin/User/serachlists')}">
        起始：
        <input type="text" name="start_time" id="start_time" value="{$value.start_time}" style="width:150px;height:35px"  placeholder="起始时间...">
        结束：
		<input type="text" name="end_time"  id="end_time"style="width:150px;height:35px" value="{$value.end_time}" placeholder="结束时间...">
		手机号：
		<input type="text" name="phone" style="width:150px;height:35px" value="{$value.phone}" placeholder="手机号码...">
		昵称：
		<input type="text" name="nickname" style="width:150px;height:35px" value="{$value.nickname}" placeholder="昵称...">
		性别：
		<select name="sex" id="" style="width:85px">
			<option value="">请选择</option>
			<option value="1">男</option>
			<option value="2">女</option>
		</select>
        <input type="submit" name="query_form_btn" class="btn btn-primary" value="查询"/><br/><br/>
    </form>
    <form class="js-ajax-form" action="" method="post">
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th>序号</th>
                <th>注册时间</th>
                <th>手机号</th>
                <th>昵称</th>
                <th>性别</th>
                <th>操作</th>
                <th>打赏列表</th>
            </tr>
            </thead>
            <tbody>
            <foreach name="data" item="vo">
                <tr>
                    <td>{$vo.user_id}</td>
					<td>{$vo.register_time}</td>
					<td>{$vo.mobile_phone}</td>
					<td>{$vo.nickname}</td>
					<td>    <if condition="$vo.sex eq 1 ">男
						<elseif condition="$vo.sex eq 2 "/> 女
						<else />
						</if></td>
					<td>
					<a href='{:U("Admin/User/moremany",array("user_id"=>$vo["user_id"]))}'>编辑</a>
					&nbsp;&nbsp;
					<a href='{:U("Admin/User/status",array("status"=>$vo["status"]))}'>
						<if condition="$vo.status eq 1 ">
									 <a href='{:U("Admin/User/close",array("id"=>$vo["user_id"])) }'
                                   class="js-ajax-dialog-btn text-error">禁用</a>
									
						<else /><a href='{:U("Admin/User/open",array("id"=>$vo["user_id"]))}'
                                   class="js-ajax-dialog-btn text-success">启用</a>
						</if>
					</a>
					</td>
					<td><a href="{:U('Admin/User/user_reward_list',array( 'user_id'=>$vo['user_id']))}" >{$vo.hw_money_total}汇闻币</a></td>
                </tr>
            </foreach>
            </tbody>
        </table>
		<div class="green-black">
		　　{$page}
		</div>
    </form>
</div>
</body>
</html>
<script src="__PUBLIC__/js/common.js"></script>
<script src="__PUBLIC__/jsdate/jedate.js"></script>
<script type="text/javascript">
	//时间插件
    jeDate({
		dateCell:"#start_time",
		format:"YYYY-MM-DD hh:mm:ss",
		isinitVal:false,
		isTime:true, //isClear:false,
		minDate:"2014-09-19 00:00:00",
		okfun:function(val){}
	})
	jeDate({
		dateCell:"#end_time",
		format:"YYYY-MM-DD hh:mm:ss",
		isinitVal:false,
		isTime:true, //isClear:false,
		minDate:"2014-09-19 00:00:00",
		okfun:function(val){}
	})
</script>